<?php

function attachPath($path=''){
    return "../attachroot/".trim($path,'/');
}
function uploadPath($path=''){
    return "../attachroot/".trim($path,'/');
}
function wwwUrl(){
    return 'http://www.'.request()->rootDomain();
}
function staticUrl(){
    return '/public/';
}
function attachUrl($path){
    return 'http://attach.'.'/'.trim($path,'/');
}
function apiUrl(){
    return 'http://api.';
}
function adminUrl(){
    return 'http://admin.';
}
